package app.mvc.controller.editor
{
	import app.interfaces.IEditorCommand;
	import app.mvc.AppFacade;
	import app.mvc.Notifications;
	import app.mvc.model.proxys.EditorDataProxy;
	
	import globals.Config;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * 更换背景
	 * @author xiling
	 */
	public class ChangeBackgroundCommand extends EditorBaseCommand implements ICommand, IEditorCommand
	{
		public function ChangeBackgroundCommand()
		{
			super();
		}		
		
		override public function redo():void
		{
			super.redo();
			execute(_notification);
		}
		
		override public function undo():void
		{
			super.undo();
		}
		
		override public function execute(notification:INotification):void
		{
			// TODO Auto Generated method stub
			super.execute(notification);			
			AppFacade.getInstance().sendNotification(Notifications.TO_CHANGE_BACKGROUND,notification.getBody());
		}
		
	}
}